-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update config.nims search path in docs #9388
Conversation
Related: nim-lang#8682 Also mention the "nim help" command to list all available tasks.
dab7566
to
f91090e
Compare
@Araq Looks like the failure is only due to tfragment_gc on OSX: https://travis-ci.org/nim-lang/Nim/jobs/442193457#L3201 The PR touches only the nims.rst file. |
``~/.config/nim/config.nims`` (POSIX) or | ||
``%APPDATA%/nim/config.nims`` (Windows). This file can be skipped | ||
with the ``--skipUserCfg`` command line option. | ||
2) ``$parentDir/config.nims`` where ``$parentDir`` stands for any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hasn't been implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean that the --skip*
switches don't apply to .nims files? I then misunderstood the above referenced applied PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true then?
1) If environment variable ``XDG_CONFIG_HOME`` is defined,
``$XDG_CONFIG_HOME/nim/config.nims`` or
``~/.config/nim/config.nims`` (POSIX) or
``%APPDATA%/nim/config.nims`` (Windows) will be used.
2) Next, if ``config.nims`` is placed inside a directory, that will
apply to all Nim projects inside that directory.
3) Next, if a project has ``<project>.nims`` that resides in the same
directory as the ``<project>.nim``, that will apply finally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Araq I believe I did implement it, see https://github.com/nim-lang/Nim/pull/8682/files#diff-5fdd8f1b1ac3aa10d48e0af960fb8c17R52
when I pass --skipUserCfg
, /Users/timothee/.config/nim/config.nims is skipped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, I misremembered then.
Unrelated test failure, merging. |
Related: nim-lang#8682 Also mention the "nim help" command to list all available tasks.
Related: nim-lang#8682 Also mention the "nim help" command to list all available tasks.
Related: #8682 Also mention the "nim help" command to list all available tasks.
Related: #8682
/cc @timotheecour @Araq